package com.project.restaurant.order.dto;

import com.project.restaurant.pojo.Seat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class DetailOrder extends BriefOrder{

    /**
     * 座位信息
     */
    @ApiModelProperty(value = "座位信息")
    protected Seat seat;

    /**
     * 支付凭证，微信支付第三方里唯一标识该微信支付信息
     */
    @ApiModelProperty(value = "支付凭证")
    protected String transactionId;

    /**
     * 下单需求，即用户下单后的要求
     */
    @ApiModelProperty(value = "下单需求")
    protected String orderDemand;

    @Override
    public String toString() {
        return "DetailOrder{" +
                super.toString()+
                "seat=" + seat +
                ", transactionId='" + transactionId + '\'' +
                ", orderDemand='" + orderDemand + '\'' +
                '}';
    }
}
